package com.ruin.tech.ahri.service;

import com.ruin.tech.ahri.model.dto.ArticleDTO;
import com.ruin.tech.ahri.model.dto.Comment;
import com.ruin.tech.ahri.model.vo.CommentVO;

import java.util.List;

/**
 * @program ahri
 * @description: 评论服务
 * @author: ruin
 * @create: 2019/12/14 22:03
 */
public interface ICommentService {
    
    /**
    * @description: 提交评论
    * @param: [comment]
    * @return: com.ruin.tech.ahri.model.vo.CommentVO
    * @author: ruin
    * @date: 2019/12/14
    */
    public CommentVO submitComment(Comment comment) throws Exception;

    /**
    * @description: 获取文章评论信息
    * @param: [param]
    * @return: java.util.List<com.ruin.tech.ahri.model.vo.CommentVO>
    * @author: ruin
    * @date: 2019/12/17
    */
    public List<CommentVO> findCommentsByArticleId(ArticleDTO param);

    /**
     * @description: 获取用户评论信息
     * @param: [param]
     * @return: java.util.List<com.ruin.tech.ahri.model.vo.CommentVO>
     * @author: ruin
     * @date: 2019/12/17
     */
    public List<CommentVO> findCommentsByUserId(ArticleDTO param);
}
